<?php
ini_set('error_reporting','E_ALL');
require_once 'simpletest/unit_tester.php';
require_once 'simpletest/reporter.php';
require_once '/../Birthday.php';

class BirthdayTest extends UnitTestCase
{
	public function Test1100()
	{
		global $MATTER_EXCEPTION;
		$MATTER_EXCEPTION = new ecept();
		$Obj = new Birthday(20120101);
		$RET = $Obj->getAge();
		$this->assertEqual('1', $RET);
		$obj2 = new Birthday( '2012', '1', '1');
		$RET = $obj2->getAge();
		$this->assertEqual('1', $RET);
	}
}

class ecept
{
	public function doit(){
		echo 'aaaa';
	}
}